#!/usr/bin/env python
#coding=utf8
__author__ = 'chenglin'
from flask import render_template, flash, redirect, session, url_for, request, g
from app import app




@app.route('/')
@app.route('/index')
def index():
    return render_template('index.html',
                           title=u'IM管理平台登录')

@app.route('/login_Login_login',methods=['GET','POST'])
def login():
    print 'call login'
    return '{"res":"","flag":"1","data":null,"msg":"操作成功"}'

@app.route('/main',methods=['GET','POST'])
def toMainPage():
    return render_template('main.html',
                           title=u'IM管理平台登录')